package com.ruoyi.core.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.core.mapper.ExchangesMapper;
import com.ruoyi.core.domain.Exchanges;
import com.ruoyi.core.service.IExchangesService;

/**
 * 积分兑换商品配置Service业务层处理
 * 
 * @author 亢哲
 * @date 2025-08-07
 */
@Service
public class ExchangesServiceImpl implements IExchangesService 
{
    @Autowired
    private ExchangesMapper exchangesMapper;

    /**
     * 查询积分兑换商品配置
     * 
     * @param id 积分兑换商品配置主键
     * @return 积分兑换商品配置
     */
    @Override
    public Exchanges selectExchangesById(Long id)
    {
        return exchangesMapper.selectExchangesById(id);
    }

    /**
     * 查询积分兑换商品配置列表
     * 
     * @param exchanges 积分兑换商品配置
     * @return 积分兑换商品配置
     */
    @Override
    public List<Exchanges> selectExchangesList(Exchanges exchanges)
    {
        return exchangesMapper.selectExchangesList(exchanges);
    }

    /**
     * 新增积分兑换商品配置
     * 
     * @param exchanges 积分兑换商品配置
     * @return 结果
     */
    @Override
    public int insertExchanges(Exchanges exchanges)
    {
        return exchangesMapper.insertExchanges(exchanges);
    }

    /**
     * 修改积分兑换商品配置
     * 
     * @param exchanges 积分兑换商品配置
     * @return 结果
     */
    @Override
    public int updateExchanges(Exchanges exchanges)
    {
        return exchangesMapper.updateExchanges(exchanges);
    }

    /**
     * 批量删除积分兑换商品配置
     * 
     * @param ids 需要删除的积分兑换商品配置主键
     * @return 结果
     */
    @Override
    public int deleteExchangesByIds(Long[] ids)
    {
        return exchangesMapper.deleteExchangesByIds(ids);
    }

    /**
     * 删除积分兑换商品配置信息
     * 
     * @param id 积分兑换商品配置主键
     * @return 结果
     */
    @Override
    public int deleteExchangesById(Long id)
    {
        return exchangesMapper.deleteExchangesById(id);
    }
}
